import React, { Component } from "react";

export default class APPClass extends Component {
  constructor(props) {
    super(props)
    this.state = {
      num: 1,
      code: 2,
    }
  }
  clickNum = async() => {
    await this.setState({num: this.state.num+1})
  }
  render() {
    return <div onClick={this.clickNum}>你好类组件{this.state.num}</div>;
  }
}
